package org.byqh.dqeai.entity.proxy;

import com.easy.query.core.expression.parser.core.available.TableAvailable;
import com.easy.query.core.proxy.AbstractProxyEntity;
import com.easy.query.core.proxy.SQLColumn;
import com.easy.query.core.proxy.SQLSelectAsExpression;
import com.easy.query.core.proxy.fetcher.AbstractFetcher;
import com.easy.query.core.proxy.core.EntitySQLContext;
import org.byqh.dqeai.entity.SysSetupApp;
import com.easy.query.core.proxy.columns.types.SQLStringTypeColumn;

/**
 * this file automatically generated by easy-query, don't modify it
 * 当前文件是easy-query自动生成的请不要随意修改
 * 如果出现属性冲突请使用@ProxyProperty进行重命名
 *
 * @author easy-query
 */
public class SysSetupAppProxy extends AbstractProxyEntity<SysSetupAppProxy, SysSetupApp> {

    private static final Class<SysSetupApp> entityClass = SysSetupApp.class;

    public static final SysSetupAppProxy TABLE = createTable().createEmpty();

    public static SysSetupAppProxy createTable() {
        return new SysSetupAppProxy();
    }

    public SysSetupAppProxy() {
    }

    /**
     * {@link SysSetupApp#getSetupId}
     */
    public SQLStringTypeColumn<SysSetupAppProxy> setupId() {
        return getStringTypeColumn("setupId");
    }

    /**
     * {@link SysSetupApp#getAppId}
     */
    public SQLStringTypeColumn<SysSetupAppProxy> appId() {
        return getStringTypeColumn("appId");
    }

    @Override
    public Class<SysSetupApp> getEntityClass() {
        return entityClass;
    }

    /**
     * 数据库列的简单获取
     *
     * @return
     */
    public SysSetupAppProxyFetcher FETCHER = new SysSetupAppProxyFetcher(this, null, SQLSelectAsExpression.empty);

    public static class SysSetupAppProxyFetcher extends AbstractFetcher<SysSetupAppProxy, SysSetupApp, SysSetupAppProxyFetcher> {

        public SysSetupAppProxyFetcher(SysSetupAppProxy proxy, SysSetupAppProxyFetcher prev, SQLSelectAsExpression sqlSelectAsExpression) {
            super(proxy, prev, sqlSelectAsExpression);
        }

        /**
         * {@link SysSetupApp#getSetupId}
         */
        public SysSetupAppProxyFetcher setupId() {
            return add(getProxy().setupId());
        }

        /**
         * {@link SysSetupApp#getAppId}
         */
        public SysSetupAppProxyFetcher appId() {
            return add(getProxy().appId());
        }

        @Override
        protected SysSetupAppProxyFetcher createFetcher(SysSetupAppProxy cp, AbstractFetcher<SysSetupAppProxy, SysSetupApp, SysSetupAppProxyFetcher> prev, SQLSelectAsExpression sqlSelectExpression) {
            return new SysSetupAppProxyFetcher(cp, this, sqlSelectExpression);
        }
    }
}
